#include<iostream>

using namespace std;

void Swap(int * a, int * b)
{
	int t = *a;
	*a = *b;
	*b = t;
}

int main()
{
	int a = 1, b = 2;

	cout << "a=" << a << ", b=" << b << endl;
	Swap(&a, &b);
	cout << "a=" << a << ", b=" << b << endl;


	system("pause");

	return 0;
}